package org.hgvc.webapp.ets.bo;

import org.apache.commons.lang.StringUtils;

public class EntitlementLookUpTable {
	private String agreementNo;
	private int year;
	private int goldPoint;
	private int silverPoint;
 

	public EntitlementLookUpTable() {
	}
	
	public String getAgreementNo() {
		return agreementNo;
	}

	public void setAgreementNo(String agreementNo) {
		this.agreementNo = agreementNo;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getGoldPoint() {
		return goldPoint;
	}

	public void setGoldPoint(int goldPoint) {
		this.goldPoint = goldPoint;
	}

	public int getSilverPoint() {
		return silverPoint;
	}

	public void setSilverPoint(int silverPoint) {
		this.silverPoint = silverPoint;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((agreementNo == null) ? 0 : agreementNo.hashCode());
		result = prime * result + year;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final EntitlementLookUpTable other = (EntitlementLookUpTable) obj;
		if (agreementNo == null) {
			if (other.agreementNo != null)
				return false;
		} else if (!agreementNo.equals(other.agreementNo))
			return false;
		if (year != other.year)
			return false;
		return true;
	}
}
